package router

import (
	"github.com/gin-gonic/gin"

	"mxshop-api/oss-web/api"
	// "mxshop-api/oss-web/global"
	// "mxshop-api/shared/auth"
)

func InitOSSRouter(Router *gin.RouterGroup) {
	// signingKey := global.ServerConfig.SigningKey
	OssRouter := Router.Group("oss")
	{
		// OssRouter.GET("token", auth.Middleware(signingKey), auth.IsAdminUser(), api.Token)
		OssRouter.GET("/token", api.Token)
		OssRouter.POST("/callback", api.CallBack)
	}
}
